package bit.springaopdemo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/test2")
public class UserController {
    @RequestMapping("/u1")
    public Integer u1(){
        log.info("执行u1");
        return 1;
    }

    @RequestMapping("/u2")
    public String u2(){
        log.info("执行u2");
        return "u2";
    }

    @RequestMapping("/u3")
    public Boolean u3(){
        log.info("执行u3");
        return true;
    }
}
